import os, sys
#applied onlu on simple session ie [page1, page2]
#can be used to filter session length or contents
session_filter_fn = lambda x: len(x) > 1







#####################################################################################
#
#           thresholds,types,patterns
#
#####################################################################################

#these log line should be ignored
ignored_postfix = (".png",".gif",".jpg",".pjpeg",".x-png",".js",".css",".ico","robot.txt")
ignored_method =("OPTIONS")

#session time out (sesonds)
session_timeout = 1800

#session buffer size
session_bufsize = 30000

#last_ip buffer size
last_ip_bufsize = 3000

#####################################################################################
#
#           Database
#
#####################################################################################


#[yyh]database config.including hostnmae,username,password,database name,charset
db={}
db['host']='localhost'
db['user']='root'
db['passwd']='yyh'
db['db']='wsm'
db['charset']='GBK'


#[yyh] filtered log table name
purged_log_tbname = "logitem"

#[yyh] session table name
sess_tbname = "simplesession"

#
ms_sessuser_tbname = "userinfo"
ms_clickpath_tbname ="clickpath"

#[yyh]url category mappting table name
url_cat_tbname = "urlcat"




#####################################################################################
#
#           file or directory path
#
#####################################################################################


# [yyh]output directory path
data_dir ="../data/"


# [yyh] jsbcmall.com website dir.  
website_dir="../../jsbcmall.com/"


        ##########    clean stage    ##########

# [myf] xxxxxx
product_category = "category"

# [myf] xxxxxx
purged_log_sql = "purged_log_sql"

# [myf] xxxxxx
url_type = "pagetype"

        ##########    session identify stage    ##########


        
